#!/usr/bin/env bash

sudo apt update

echo "config sysmtem"
sudo apt install zsh wget curl
chsh -s $(which zsh)
echo -e "source ~/.config/zsh/zshrc" | tee "$HOME"/.zshrc
mkdir "$HOME"/.local/statea
touch "$HOME"/.local/state/zsh_jump_list

shopt -s dotglob

echo "init config"
./update down

echo "config git"
sudo apt install git
git config --global user.name "Kicamon"
git config --global user.email "kicamonice@gmail.com"
git config --global core.editor "nvim"
git config --global init.defaultBranch 'main'

echo "install dependencies"
sudo apt install bat eza fzf lua5.4 neofetch neovim python3
curl -sS https://starship.rs/install.sh | sh
